﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.XPath;

namespace xpath_parser
{
	class Program
	{
		static void Main()
		{
			string path_exp = Console.ReadLine();
			
			XPathLexer lexer = new XPathLexer( path_exp );
			XPathParser parser = new XPathParser();

			var result = parser.yyparse( lexer );
//			var result = parser.yyparse( lexer );
			Console.WriteLine( result.ToString() );
			
			Console.ReadKey();
		}
	}
}
